</head>
	<body>
		<div id="menu">
			<ul>
				<li><a href="<?=site_url()?>">Home</a></li>
				<?php if(!$logged): ?>
				<li><a href="<?=site_url()?><?=$page?>/register">Register</a></li>
				<li><a href="<?=site_url()?><?=$page?>/login">Login</a></li>
				<?php else: ?>
				<li><a href="<?=site_url()?><?=$page?>/profile">Profile</a></li>
				<?php if($admin): ?>
				<li><a href="<?=site_url()?>admin">Admin Panel</a></li>
				<?php endif; ?>
				<?php if($loggedChar): ?>
				<li><a href="<?=site_url()?><?=$page?>/town">Go to town</a></li>
				<?php endif; ?>
				<li><a href="<?=site_url()?><?=$page?>/logout">Logout</a></li>
				<?php endif; ?>
			</ul>
		</div>
		<div id="container">
			<div id="header">
				<div id="header-in">
					<h1><a href="<?=site_url()?>">RoBattle</a></h1>
				</div>
			</div>